package com.raymond.queue.common.msg.response;

import com.raymond.queue.common.msg.DefaultMessage;

/**
 * 默认响应
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-07-27 16:03
 */
public abstract class BaseResponseMessage extends DefaultMessage {

    /**
     * -1:发送失败
     * -2:超时未响应
     * -3:请求参数不合法
     */
    private int code;

    public BaseResponseMessage(int sequenceId) {
        super(sequenceId);
    }

    public BaseResponseMessage(int sequenceId, int code) {
        super(sequenceId);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
